﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginasMaster.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="HerGoS.WebUI.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

        $(function () {
            $("#dialog-login").dialog({
                autoOpen: true,
                draggable: false,
                resizable: false,
                modal: false,
                height: 180,
                closeOnEscape: false,
                open: function (event, ui) {
                    $(this).parent().children().children(".ui-dialog-titlebar-close").hide();
                    $(this).parent().appendTo("form");
                }
            }).dialog('option', 'title', 'Acceso al sistema'); ;



            $(window).resize(function () {
                $("#dialog-login").dialog("option", "position", "center");
            });

            $("#<%=txtUser.ClientID %>").focus();
        });

    </script>
    <div id="wrapper" class="ui-widget-overlay "></div>
    <div id="dialog-login"  class="ui-front">
        <asp:Table runat="server" Width="100%">
            <asp:TableRow>
                <asp:TableCell ColumnSpan="2" HorizontalAlign="Center">                
                <div id="ErrorMessage" runat="server" style=" color:#cd0a0a" >&nbsp;</div>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>Usuario:</asp:TableCell>
                <asp:TableCell>
                    <wce:TextBoxExt runat="server" ID="txtUser" Required="true"></wce:TextBoxExt></asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>Password:</asp:TableCell>
                <asp:TableCell>
                    <wce:TextBoxExt runat="server" ID="txtPassword" Required="true" TextMode="Password" ></wce:TextBoxExt></asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
                    <asp:CheckBox id="chkPersistLogin" runat="server" Text="Recordarme" Checked="true" /></asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
                    <wce:ButtonExt runat="server" ID="cmdLogin" OnClientClick="return validarForm();" OnClick="ProcessLogin" Text="Ingresar" /></asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </div>
</asp:Content>
